package com.liukh.obwiki.req;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("文档保存参数")
public class DocSaveReq {
    @ApiModelProperty("ID")
    private Long id;

    @NotNull(message = "【电子书】不能为空")
    @ApiModelProperty("电子书ID")
    private Long ebookId;

    @NotNull(message = "【父文档】不能为空")
    @ApiModelProperty("父文档ID")
    private Long parent;

    @NotNull(message = "【名称】不能为空")
    @ApiModelProperty("名称")
    private String name;

    @NotNull(message = "【顺序】不能为空")
    @ApiModelProperty("顺序")
    private Integer sort;

    @ApiModelProperty("阅读数")
    private Integer viewCount;

    @ApiModelProperty("点赞数")
    private Integer voteCount;

    @NotNull(message = "【内容】不能为空")
    @ApiModelProperty("内容")
    private String content;
}
